package com.sky.controller.admin;

import com.sky.dto.AddPartnerDTO;
import com.sky.service.PartnerService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/admin/user-service")
public class PartnerController {
    @Autowired
    private PartnerService partnerService;
    /**
     * 新增合作商
     * */
    @PostMapping("/partner")
    public Boolean addPartner(AddPartnerDTO addPartnerDTO){
        partnerService.addPartner(addPartnerDTO);
        return true;

    }
}
